package com.kkb.mybatis.framework.executor;

import com.kkb.mybatis.framework.config.Configuration;
import com.kkb.mybatis.framework.config.MappedStatement;

import java.util.List;

public class CachingExecutor implements Executor{

    private Executor executor;

    public CachingExecutor(Executor executor) {
        this.executor = executor;
    }

    @Override
    public <T> List<T> query(Configuration configuration, MappedStatement mappedStatement, Object object) {
        return executor.query(configuration,mappedStatement,object);
    }
}
